package com.chixing.day04_oop.word;


public class AccountTest {
    public static void main(String[] args) {
        SavingAccount account1 = new SavingAccount();
        account1.setAccNo(101);
        account1.setAccName("张三");
        account1.setAccPassword("xx45522");
        account1.setAccBalance(5555f);
        account1.setAccTelNo(155663355L);
        System.out.println(account1.toString());
        account1.withdraw(1000f);
        account1.depoist(2000f);
        System.out.println(account1.toString());


        CreditAccount account2 = new CreditAccount();
        account2.setAccNo(102);
        account2.setAccName("李四");
        account2.setAccPassword("585sff");
        account2.setAccBalance(555f);
        account2.setAccTelNo(155464875L);
        account2.setMaxOverdraw(5000L);
        account2.setAlreadyOverdraw(1045L);
        System.out.println(account2.toString());
        account2.overdraw(1000f);
        System.out.println(account2.toString());

        Bank bank = new Bank();


    }

}
